/* graphreader.h
Desc.: Implementation of a graph reader class
Auth.: Ashwin Lall
Start: March 9, 2014
*/

#ifndef _GRAPHREADER_H
#define _GRAPHREADER_H

#include <map>
#include <string>
#include <fstream>
using namespace std;

class GraphReader
{
public:
    // constructor
    GraphReader(string filename);    

    // accessor
    bool nextEdge(int &node1, int &node2);  // returns true iff there is another edge, with vertices in node1/node2

protected:
    ifstream _file;
    map<int, int> _label;
    int _curr;
};

#endif
